package ModelLayer;
import java.util.ArrayList;


/**
 * Write a description of class LendCollection here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class LendCollection
{
    private ArrayList<Lend> lends;
    /**
     * Constructor for objects of class LendCollection
     */
    public LendCollection()
    {
        lends = new ArrayList<Lend>();
    }
    
    /**
     * Add a lend
     */
    public void addLend(Lend lend)
    {
        lends.add(lend);
    }
    
    public void deleteLend(int id)
    {
        Lend l = lends.get(id);
        lends.remove(l);
    }
    
    public ArrayList<Lend> listAllLend()
    {
        return lends;
    }
    
}
